import http from "@/utils/request";
// 获取权限菜单 /请求菜单
export let getStulistApi=(page=1,count=10,classes="")=>http.get("/students/getstulist",{
    params:{
        page,
        count,
        class:classes
    }
})
// 搜索学员
export const searchStuListApi =(key="",count=10,page=1)=>http.get("/students/searchstu",{
    params:{
        key,
        count,
        page,
    }
})
// 增加学员
export const addStuApi =param=>http.post("/students/addstu",param)
// 删除学员
export const delStuApi =sId=>http.get("/students/delstu",{
    params:{
        sId
    }
})
// 修改学员
export const updateStuApi =param=>http.post("/students/updatestu",param)
// 上传头像
// export const uploadStuAvatarApi =headimgurl=>http.post("/students/uploadStuAvatar",headimgurl)